public class CheckEnvironment {
    public static void main(String[] args) {
        System.out.println("=== Environment Check ===");
        
        // Check Java version
        System.out.println("Java version: " + System.getProperty("java.version"));
        System.out.println("Java home: " + System.getProperty("java.home"));
        
        // Check current working directory
        System.out.println("Current directory: " + System.getProperty("user.dir"));
        
        // Check user directory (Maven local repo location)
        String userHome = System.getProperty("user.home");
        System.out.println("User home: " + userHome);
        System.out.println("Maven local repo: " + userHome + "\\.m2\\repository");
        
        // Check classpath
        System.out.println("Classpath: " + System.getProperty("java.class.path"));
        
        // Try to load Spring Boot class
        try {
            Class.forName("org.springframework.boot.SpringApplication");
            System.out.println("Spring Boot class found!");
        } catch (ClassNotFoundException e) {
            System.out.println("Spring Boot class not found: " + e.getMessage());
        }
        
        System.out.println("=== Environment Check Complete ===");
    }
}